package com.example.blog.domain;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class Email {
    @NotBlank(message = "邮箱不能为空")
    @Size(min = 15,max = 30,message = "邮箱格式不正确或无效")
    private String email;
    @NotBlank(message = "验证码不能为空")
    @Size(min = 5,max = 8,message = "无效的验证码")
    private String captcha;
}
